package com.atjinggu.jinggumail.product.service;

import com.atjinggu.jinggumail.product.vo.AttrVo;
import com.atjinggu.jinggumail.product.vo.RespAttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atjinggu.jinggumail.common.utils.PageUtils;
import com.atjinggu.jinggumail.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author jingming
 * @email jingming@gmail.com
 * @date 2020-12-12 23:08:28
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryAttrList(Map<String, Object> params, Integer categoryId, String type);

    RespAttrVo getDetailById(Long attrId);

    void updateAttrById(RespAttrVo attrVo);

    List<AttrEntity> getRelationAttr(Long attrgroupId);


}

